package com.example.demo.service.order;

import com.example.demo.common.BasePageResponse;
import com.example.demo.common.ResultObject;
import com.example.demo.jooq.tables.pojos.Email;
import com.example.demo.model.request.EmailPageRequest;
import com.example.demo.model.request.EmailRequest;
import com.example.demo.model.request.VpsPageRequest;
import com.example.demo.model.response.EmailResponse;
import com.example.demo.model.response.VpsResponse;

public interface IEmailService {
    /**
     * 分页查询Vps
     * @param emailPageRequest 分页查询请求参数
     * @return ResultObject<BasePageResponse<VpsResponse>>
     */
    public ResultObject<BasePageResponse<EmailResponse>> queryPageEmailList(EmailPageRequest emailPageRequest);

    /**
     * 分页查询Vps
     * @param emailId 邮箱ID
     * @return ResultObject<BasePageResponse<VpsResponse>>
     */
    public ResultObject<EmailResponse> queryOneEmail(String emailId);

    /**
     * 保存邮箱信息
     * @param email 邮箱对象
     * @return ResultObject<BasePageResponse<VpsResponse>>
     */
    public ResultObject saveEmail(EmailRequest email);
}
